# $Id$
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=libqalculate
pkgver=2.1.0
pkgrel=1
pkgdesc="Multi-purpose desktop calculator"
arch=('i686' 'x86_64')
url="http://qalculate.github.io/"
license=('GPL')
depends=('libxml2' 'curl' 'mpfr')
makedepends=('intltool')
optdepends=('gnuplot: for plotting support')
options=('!makeflags')
source=(https://github.com/Qalculate/libqalculate/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('7668ed9ab32d46d3638297985a03bc995b6aedf8b8335685e1a43393ba236f12')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
